#include "Arrow.h"

Arrow::Arrow(const char *arrowType) {
	m_magicArrow = MagicArrow::MagicCount;
	auto dic = GameData::getInstance()->getArrowProperty(arrowType);
	m_arrowFileName = dic->valueForKey(ARROWFILENAME_KEY)->getCString();
	m_speed = atoi(dic->valueForKey(ARROWSPEED_KEY)->getCString());
	m_knovkBack = atoi(dic->valueForKey(ARROWKNOCKBACK_KEY)->getCString());
	m_range = atoi(dic->valueForKey(ARROWRANGE_KEY)->getCString());
}
